<!DOCTYPE >
<html >
<head>
 <meta charset="UTF-8"> 
	<title>商户信息</title>
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
	<link href="http://cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
	<link href="http://cdn.bootcss.com/font-awesome/4.4.0/css/font-awesome.css" rel="stylesheet">
	<link href="http://cdn.bootcss.com/iCheck/1.0.1/skins/square/green.css" rel="stylesheet">
	<link href="http://cdn.bootcss.com/jquery-datetimepicker/2.4.5/jquery.datetimepicker.min.css" rel="stylesheet">
	<link href="http://cdn.bootcss.com/x-editable/1.5.1/bootstrap3-editable/css/bootstrap-editable.css" rel="stylesheet">
	<link rel="stylesheet" type="text/css" href="css/iconfont.css">
	<link rel="stylesheet" type="text/css" href="css/demo.css">
	<script src="http://cdn.bootcss.com/jquery/2.1.4/jquery.min.js"></script>
	<script src="http://cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
	<script src="http://cdn.bootcss.com/iCheck/1.0.1/icheck.min.js"></script>
	<script src="http://cdn.bootcss.com/jquery-datetimepicker/2.4.5/jquery.datetimepicker.js"></script>
	<script src="http://cdn.bootcss.com/x-editable/1.5.1/bootstrap3-editable/js/bootstrap-editable.min.js"></script>
</head>
<body>
<!-- 导航条 -->
<nav class="navbar navbar-default navbar-fixed-top">
  <div class="container">
  	<div class="col-xs-4 mac-nav-margin">
  		<div  class="text-center mac-top-bottom">
   			 <img src="img/10.png" width="20px" height="20px;">
   		 </div>
   		 <div class="mac-top-p text-center">
   		 	基本信息
   		 </div>
    </div>
   <div class="col-xs-4 mac-nav-margin">
  		<div  class="text-center">
   			<a href="webdemo1.html"> <img src="img/11.png" width="20px" height="20px;"></a>
   		 </div>
   		  <div class="mac-top-p text-center">
   		 	经营信息
   		 </div>
    </div>
   <div class="col-xs-4 mac-nav-margin">
  		<div  class="text-center">
   			<a href="fileupload.html"> <img src="img/12.png"width="20px" height="20px;"></a>
   		 </div>
   		 		  <div class="mac-top-p text-center">
   		 		上传照片
   		 </div>
    </div>
  </div>
</nav>


<div class="row row_margin" >
	<form name="form" id="form">
		<div class="col-xs-12">
			<div class="form-group has-success has-feedback">
			  <label class="control-label" for="inputGroupSuccess4">注册登记号</label>
			  
			    <input type="text" class="form-control" placeholder="请输入注册登记号" required>
			  
			</div>
		</div>
		<div class="col-xs-12">
			<div class="form-group has-success has-feedback">
			  <label class="control-label" for="inputGroupSuccess4">税务登记号</label>
			    <input type="text" class="form-control" placeholder="请输入税务登记号" required>
			</div>
		</div>
			<div class="col-xs-12">
			<div class="form-group has-success has-feedback">
			  <label class="control-label" for="inputGroupSuccess4">注册地址</label>
			    <input type="text" class="form-control" placeholder="请输入注册地址" required>
			</div>
		</div>
		<div class="col-xs-12">
			<div class="form-group has-success has-feedback">
			  <label class="control-label" for="inputGroupSuccess4">开业时间</label>
			    <input type="text" class="form-control" placeholder="请选择开业时间" id="openTime" required>
			</div>
		</div>
			<div class="col-xs-12">
			<div class="form-group has-success has-feedback">
			  <label class="control-label" for="inputGroupSuccess4">注册资本</label>
			  <div class="input-group">
			    <input type="text" class="form-control" placeholder="请输入注册资本" id="openTime" required>
			    <div class="input-group-addon">万元</div>
			  </div>
			</div>
		</div>
		<div class="col-xs-12">
			<div class="form-group has-success has-feedback">
			  <label class="control-label" for="inputGroupSuccess4">法务类别码</label>
			    <input type="text" class="form-control" placeholder="请输入法务类别码" required>
			</div>
		</div>

		<div class="col-xs-12">
			<div class="form-group has-success has-feedback">
			  <label class="control-label" for="inputGroupSuccess4">商户性质</label>
			    	<select class="form-control">
		       					<option>个体餐饮</option>
		       					<option>纺织业</option>
		       					<option>软件行业</option>
		       					<option>其它</option>
		       				</select>
			</div>
		</div>

		       		<div  style="margin-top:15px;" class="text-center row">
		       			<div class="col-xs-12">
		       			<button class="btn btn-success btn_submit">提交</button>
		       			</div>
		       		</div>
		      </div>
		</form>
</div>

<nav class="navbar navbar-default navbar-fixed-bottom">
  <div class="container">
   	<div class="col-xs-4 text-center mac-nav-bottom-margin">
   		<a href="help.html"><img src="img/013.png" width="20px" height="20px;"></a>
		<p class="mac-nav-bottom-p">帮助</p>
   	</div>
   	<div class="col-xs-4 text-center mac-nav-bottom-margin">
   		<img src="img/14.png"  width="20px" height="20px">
   		<p class="mac-top-p">填写资料</p>
   	</div>
   	   	<div class="col-xs-4 text-center mac-nav-bottom-margin">
   		<a href="fileupload.html"><img src="img/015.png"  width="20px" height="20px;"></a>
   		<p class="mac-nav-bottom-p">上传照片</p>
   	</div>
  </div>
</nav>
</body>

<div class="modal fade tipModal">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title">系统提示</h4>
      </div>
      <div class="modal-body">
        <p class="tipsContent" style="font-size:20px;"></p>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
        <button type="button" class="btn btn-primary" data-dismiss="modal">确定</button>
      </div>
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<script>
$('#openTime').datetimepicker({
      lang:"ch",           //语言选择中文
      format:'Y-m-d',
      timepicker:false
});
$('#am').datetimepicker({
      lang:"ch",           //语言选择中文
      datepicker:false,
	  format:'H:i',
      value:'09:00'
      
});
$('#pm').datetimepicker({
      lang:"ch",           //语言选择中文
      datepicker:false,
	  format:'H:i',
      value:'18:00'
});

$(document).ready(function(){
  $('input').iCheck({
    checkboxClass: 'icheckbox_square-green',
    radioClass: 'iradio_square-green',
    increaseArea: '20%' // optional
  });
});
$("#submit").click(function(){
	var logic = true;
	var a = $("input[name='a']");
	var b = $("input[name='b']");
	var c = $("input[name='c']");
	var d = $("input[name='d']");
	var e = $("input[name='e']");
	var k = $("input[name='k']");
	var l = $("input[name='l']");
	if(a.val()==""){
		logic = false;
		$(".tipModal").modal();
		$(".tipsContent").html("注册登记号不能为空");
	}
	if(b.val()==""){
		logic = false;
		$(".tipModal").modal();
		$(".tipsContent").html("税务登记号不能为空");
	}
	if(c.val()==""){
		logic = false;
		$(".tipModal").modal();
		$(".tipsContent").html("注册地址不能为空");
	}
	if(e.val()==""){
		logic = false;
		$(".tipModal").modal();
		$(".tipsContent").html("注册地址不能为空");
	}
	if(k.val()==""){
		logic = false;
		$(".tipModal").modal();
		$(".tipsContent").html("营业用地面积不能为空");
	}
	if(l.val()==""){
		logic = false;
		$(".tipModal").modal();
		$(".tipsContent").html("员工人数不能为空");
		l.focus();
	}
	if(logic){
		$(".tipModal").modal();
		$(".tipsContent").html("提交成功!");
	}
});
</script>
</html>